package xiaodou.events.account
{
	import flash.events.Event;
	
	import xiaodou.data.account.UserData;
	
	public class AccountEvent extends Event
	{
		public static const DELETE_ACCOUNT:String = "deleteAccount";
		
		public static const ADD_ACCOUNT:String = "addAccount";
		
		public static const UPDATE_ACCOUNT:String = "updateAccount";
		
		/**
		 * 当前登录系统的帐号改变事件 
		 */		
		public static const CURRENT_ACCOUNT_CHANGED:String = "xiaodou.events.account.AccountEvent.currentAccountChanged";
		
		public var account:UserData;
		
		public function AccountEvent(type:String, account:UserData, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.account = account;
		}
		
		override public function clone():Event
		{
			return new AccountEvent(type, account, bubbles, cancelable);
		}
	}
}